﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Psl.Chat;
using Psl.Applications;
using Stl.Chat.Remoting.Plugin;

namespace Stl.Chat.Model.Plugin
{
    /// <summary>
    /// Germe d'installation du plugin ChatModel.
    /// </summary>
    [PslPluginInstaller]
    class ChatModelPlugin
    {
        /// <summary>
        /// Méthode d'installation du plugin.
        /// </summary>
        public static void Install()
        {   // a revoir
            ChatState chatState = ChatRegistry.ChatState;
            if (chatState.Usage == ChatUsage.Server || chatState.Usage == ChatUsage.Local)
                chatState.ModelInternal = new ChatModel();

            chatState.Model = null;
            //chatState.Model = model;
            chatState.ModelRemotable = null;
        }
    }
}
